package com.googlecode.wmlynar.gwtbeans.client.beans;

/**
 * Interface to be implemented by classes performing conversion of the property
 * values.
 * 
 * @author Wojciech Mlynarczyk (wmlynar@gmail.com)
 * 
 * @param <T>
 *            Type of the returned value.
 * @param <V>
 *            Type of the parameter.
 */
public interface Converter<T, V> {

    /**
     * Converts the value to a new format. Method is not allowed to throw any
     * exception.
     * 
     * @param t
     *            Value is original format.
     * @return Converted value.
     */
    V convert(T t);
}
